<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateExportFileTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('export_file', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('file_url')->comment('文件地址');
            $table->string('type',30)->comment('导出文件类型');
            $table->string('hash_id')->comment('hashid');
            $table->text('params')->nullable()->comment('导出参数');
            $table->timestamps();
            $table->softDeletes();
            $table->engine="InnoDb";
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('export_file');
    }
}
